package comando;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import modelo.Visita;
import modelo.Usuario;
import servico.VisitaAppService;
import excecao.AplicacaoException;

public class ComandoExibeVisita {

    private String proxima;

    public ComandoExibeVisita() {
        proxima = "/jsp/exibeVisita.jsp";
    }

    public String executar(HttpServletRequest request) {

        HttpSession sessao = request.getSession();
        Usuario umUsuario = (Usuario) sessao.getAttribute("login");

        VisitaAppService umVisitaAppService = new VisitaAppService();
        Visita bean;

        //bean = umVisitaAppService.recuperaUmVisita(umUsuario.getId());



        return proxima;
    }
}
